package top.kent90.dao;

import top.kent90.annotation.MyMapper;
import top.kent90.pojo.ZczyOrder;

import java.util.List;
@MyMapper
public interface ZczyOrderDao {
    /** 查看所有订单
     * @param
     * @return
     **/
    List<ZczyOrder> findAll(int page,int size) throws Exception;

    /**批量删除
     * @param orderId
     * @return
     */
    int delAll(Integer orderId) throws Exception;
    /**
     * 根据id删除信息
     *
     * @param orderId
     * @return
     */
    int deleteById(Integer orderId) throws Exception;
    /**
     * 添加订单
     * @param zczyOrder
     * @return
     */
    int add(ZczyOrder zczyOrder) throws Exception;
    /**
     * 根据id查询订单信息
     * @param orderId
     * @return
     */
    ZczyOrder findById(Integer orderId) throws Exception;
    /**
     * 根据id修改订单信息
     * @return
     */
    ZczyOrder updateById(ZczyOrder zczyOrder) throws Exception;



}
